package es.udc.fbellas.j2ee.tiendaweb.model.usuario.TO;

import java.io.Serializable;

public class UsuarioProfileTO implements Serializable {

    private String login;
    private String encryptedPassword;
    private String nombre;
    private String apellidos;
    private String email;
	private int idDir;
	private long numTarjeta;
    private String language;
    private String country;
    
    public UsuarioProfileTO(String login, String encryptedPassword, String nombre, String apellidos, String email, int idDir, long numTarjeta, String lang, String coun) {
        
        this.login = login;
        this.encryptedPassword = encryptedPassword;
        this.nombre = nombre;
        this.apellidos = apellidos;
        this.email = email;
		this.idDir = idDir;
		this.numTarjeta = numTarjeta;
		this.language = lang;
		this.country = coun;
        
    }
    
    public String getLogin() {
        return login;
    }
    
    public String getEncryptedPassword() {
        return encryptedPassword;
    }
    
    public void setEncryptedPassword(String encryptedPassword) {
        this.encryptedPassword = encryptedPassword;
    }

    public String getNombre() {
        return nombre;
    }
    
    public void setNombre(String nom) {
        this.nombre = nom;
    }
    
    public String getApellidos() {
        return apellidos;
    }
    
    public void setApellidos(String apel) {
        this.apellidos = apel;
    }
    
    public String getEmail() {
        return email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }

    public int getIdDir() {
        return idDir;
    }
    
    public void setIdDir(int idDir) {
        this.idDir = idDir;
    }


    public long getNumTarjeta() {
        return numTarjeta;
    }
    
    public void setNumTarjeta(long numTarjeta) {
        this.numTarjeta = numTarjeta;
    }

    
    public String toString() {
        return new String("login = " + login + " | " +
            "encryptedPassword = " + encryptedPassword + " | nombre = " + nombre
			+ " | apellidos = " + apellidos + " | email = " + email + " | idDir = " + idDir 
			+ " | numTarjeta = " + numTarjeta + " | language = " + language + " | country " + country);
    }

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}
    
    /* Test code. Uncomment for testing. */
//    public static void main (String[] args) {
//    
//        UserProfileDetailsVO userProfileDetailsVO = new UserProfileDetailsVO(
//            "Fernando", "Bellas Permuy", "fbellas@udc.es", "gl", "ES");
//        UserProfileVO userProfile = new UserProfileVO("fbellas",
//            "YYYYYYYY", userProfileDetailsVO);
//            
//        System.out.println(userProfile);
//        
//    }    

}
